package com.scut.edu.wanyou.wanwanstool;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;


/**
 * 
 *  活动类
 * @author chx
 *
 */
public class Wanwan {
	//发布人信息
	private int user_id=0;                                        //发布人账号
	private String user_nickname="";
	private String user_headImg_url="";
	//活动信息
	private int act_id=0;                                                  //活动id
	private int cat_id=0;                                                  //活动类型
	private String title="";                                              //主题/title
	private String description="";                                   //详情
	private String publishTime="";                                 //发布时间
	private String start_Time="";                                   //开始时间
	private String end_Time="";                                    //结束时间
	private String location="";                                      //地点
	private String statu="";                                          //状态
	private String imgUrl=null;                                      //详情中若有图片,此为图片地址
	private int interested=0;                           //感兴趣人数 --点击进去即为感兴趣
	private int joined=0;                                 //参加人数    --点击进去再点击参加即为参加
	private List<String> comments=new ArrayList<String>();
	
	//待定
	private String tags="";
	private int featured=0;
	private int released=0;
	
	
	public Wanwan(int actID,int catID){
		this.act_id=actID;
		this.cat_id=catID;
	}


	//set函数
	public void setUserAccount(int id){
		this.user_id=id;
	}
	public void setUserNickname(String userNickname){
		this.user_nickname=userNickname;
	}
	public void setUserHeadimgUrl(String url){
		this.user_headImg_url=url;
	}

	public void setPublishTime(String time){
		this.publishTime=time;
	}
	public void setTitle(String title){
		this.title=title;
	}
	public void setStartTime(String start){
		this.start_Time=start;
	}
	public void setEndTime(String end){
		this.end_Time=end;
	}
	public void setStatu(String statu){
		this.statu=statu;
	}
	public void setLocation(String loc){
		this.location=loc;
	}
	public void setDetails(String details){
		this.description=details;
	}
	public void setDetailsImageUrl(String url){
		this.imgUrl=url;
	}
	public void setInterested(int interested){
		this.interested=interested;
	}
	public void setJoined(int joined){
		this.joined=joined;
	}
	public void setComments(List<String> list){
		this.comments=list;
	}
	
	
	//get函数
	public int getUserID(){
		return user_id;
	}
	public String getUserNickname(){
		return user_nickname;
	}
	public String getUserHeadimgUrl(){
		return user_headImg_url;
	}
	
	public int getActID(){
		return act_id;
	}
	public int getCatID(){
		return cat_id;
	}
	
	public String getPublishTime(){
		return publishTime;
	}
	public String getTitle(){
		return title;
	}
	public String getStartTime(){
		return start_Time;
	}
	public String getEndTime(){
		return end_Time;
	}
	public String getStatu(){
		return statu;
	}
	public String getLocation(){
		return location;
	}
	public String getDetails(){
		return description;
	}
	public String getDetailsImageUrl(){
		return imgUrl;
	}
	public int getInterested(){
		return interested;
	}
	public int getJoined(){
		return joined;
	}
	public List<String> getComments(){
		return comments;
	}
	

}
